package com.sy.simpleegg.room.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.sy.simpleegg.constant.OutState


@Entity(tableName = "tb_out")
data class OutEntity(
    @PrimaryKey(autoGenerate = true) var id: Long = 0,
    @ColumnInfo(name = "uuid") var uuid: String = "",
    @ColumnInfo(name = "sort") var sort: Int = 0,
    @ColumnInfo(name = "goodId") var goodId: String = "",
    @ColumnInfo(name = "price") var price: String = "0",
    @ColumnInfo(name = "channel") var channel: Int = 0,
    @ColumnInfo(name = "success") var success: Int = OutState.UNHANDLE//0-未处理 1-出货成功 2-出货失败
){
    @Ignore()
    constructor(): this(0)
}
